import { API_REQUEST_USER_IDENTITY } from '.';

/**
 * 记录 当前 用户 唯一身份
 *
 * 永久存
 */
export function set_localstorage_login_user_identity(identity: string) {
  localStorage.setItem(API_REQUEST_USER_IDENTITY, identity);
}

export function get_localstorage_login_user_identity() {
  return localStorage.getItem(API_REQUEST_USER_IDENTITY);
}

/**
 * 删除 当前 用户 唯一身份
 */
export function remove_localstorage_login_user_identity() {
  localStorage.removeItem(API_REQUEST_USER_IDENTITY);
}
